﻿using LiveCharts;
using System;
using System.Globalization;
using System.Windows.Data;

namespace IP20.Procdure
{
    public class IntToPieSegmentConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is int intValue)
            {
                return new ChartValues<double> { intValue };
            }

            return null;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}